package cases 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Point;
	import flash.utils.getTimer;
	import flash.utils.setTimeout;
	import org.despair2D.Despair;
	import org.despair2D.utils.DelayManager;
	/**
	 * ...
	 * @author Pure
	 */
public class DelayDemo extends Sprite
{
	
	public function DelayDemo() 
	{
		
		Despair.startup(stage)
		
		var arr:Array = [];
		var i:int
		var l:int = 200000;
		while (--l > 0)
		{
			i = DelayManager.getInstance().delayedCall(l, trace, l);
			arr.push(i)
		}

		oldT2 = getTimer()

	}
	
	private var oldT:int = -1;
	private var oldT2:int;
	private var elapsedT:int;

}

}
